$(window).load(function(){
    $(".outer").css("opacity","1");
});
//设置浏览器cook
function setCookie(name,value,expires)
{
    if (!expires) expires=30;
    var Days = expires;
    var exp = new Date();
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
//获取浏览器cook
function getCookie(name)
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    if(arr != null) return unescape(arr[2]); return null;
}
//浏览器重定向
function browserRedirect(){
    if (/android/i.test(navigator.userAgent)) return "android";
    else if (/iPhone|iPad|iPod|iTouch|Mac/i.test(navigator.userAgent)) return "phone";
    else return "pc";
}
